package cn.bellychang.ood.mailsendproduct;

/**
 * @author ChangLiang
 * @date 2020/5/12
 */
public class MailUtil {

    public static void sendEmail(String toAddress, String fromAddress, String subject, String message, String smtpHost,
                                 boolean debug) {
        //假装发了一封邮件
        StringBuilder buffer = new StringBuilder();
        buffer.append("From:").append(fromAddress).append("\n");
        buffer.append("To:").append(toAddress).append("\n");
        buffer.append("Subject:").append(subject).append("\n");
        buffer.append("Content:").append(message).append("\n");
        System.out.println(buffer.toString());

    }
}
